package com.ibangnuo.api.employee;

import com.ibangnuo.framework.domain.request.employee.AssistantRequest;
import com.ibangnuo.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @Author:ly
 * @Data:2019/12/30 10:33
 * @Verdion:1.0
 */
@Api(value="店员管理",description = "店员管理的增删改查")
public interface AssistantControllerApi {

    @ApiOperation("店员查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name="assistantUsername",value = "登录名",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantName",value = "真实姓名",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantUuid",value = "编号",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantEmail",value = "邮箱",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantSex",value = "性别",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantPhone",value = "电话",required=true,paramType="path",dataType="Long"),
//            @ApiImplicitParam(name="assistantState",value = "状态",required=true,paramType="path",dataType="String"),
    })
    QueryResponseResult userQuery(AssistantRequest assistantRequest);


    @ApiOperation("店员添加")
    @ApiImplicitParams({
            @ApiImplicitParam(name="assistantUsername",value = "登录名",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantName",value = "真实姓名",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantPhone",value = "电话",required=true,paramType="path",dataType="Long"),
            @ApiImplicitParam(name="assistantPassword",value = "密码",required=true,paramType="path",dataType="String"),
    })
    QueryResponseResult addAssistant(AssistantRequest assistantRequest);


    @ApiOperation("店员删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name="assistantNumber",value = "店员id",required=true,paramType="path",dataType="String"),
    })
    QueryResponseResult delAssistant(String  assistantNumber);


    @ApiOperation("店员信息回显")
    @ApiImplicitParams({
           @ApiImplicitParam(name="assistantNumber",value = "店员id",required=true,paramType="path",dataType="String"),
    })
    QueryResponseResult findById(String assistantNumber);


    @ApiOperation("店员编辑")
    @ApiImplicitParams({
            @ApiImplicitParam(name="assistantUsername",value = "登录名",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantName",value = "真实姓名",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantUuid",value = "编号",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantEmail",value = "邮箱",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantSex",value = "性别",required=true,paramType="path",dataType="String"),
            @ApiImplicitParam(name="assistantPhone",value = "电话",required=true,paramType="path",dataType="Long"),
            @ApiImplicitParam(name="assistantCreateTime",value = "创建时间",required=true,paramType="path",dataType="Date"),
    })
    QueryResponseResult upAssistant(AssistantRequest assistantRequest);




}
